package com.loong.user.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-10-16 16:19
 */
@Data
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ManageResourceGroupParam {
    @NotNull(groups = {CommonUpdate.class},message = "id不能为空")
    private Long id;
    /**
     * 名称
     */
    @NotBlank(groups = {CommonInsert.class},message = "资源组名称不能为空")
    private String name;

    /**
     * logo
     */
    @NotBlank(groups = { CommonInsert.class},message = "logo不能为空")
    private String logo;

    /**
     * 描述
     */
    private String description;

    /**
     * 备注
     */
    private String remark;

    /**
     * 分组状态
     */
    @NotNull(groups = {CommonInsert.class},message = "分组状态不能为空")
    private Boolean groupStatus;
}
